home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / MBLIB10.ZIP;1 / CPPEXAMP.ZIP / NETWRT.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  2.2 KB  |  58 lines

  1. #include <stddef.h>
  2.  
  3. #include "netmail.hpp"
  4.  
  5. #define NMPATH "d:\\tmp\\tmp"      /* Let's be lazy and do it this way */
  6.  
  7. #define MSGTXT1    "The quick brow fox jumps over the lazy dog. " \
  8.                 "The quick brow fox jumps over the lazy dog. " \
  9.                 "The quick brow fox jumps over the lazy dog. " \
  10.                 "The quick brow fox jumps over the lazy dog. " \
  11.                 "The quick brow fox jumps over the lazy dog. " \
  12.                 "The quick brow fox jumps over the lazy dog. " \
  13.                 "The quick brow fox jumps over the lazy dog. " \
  14.                 "The quick brow fox jumps over the lazy dog. " \
  15.                 "The quick brow fox jumps over the lazy dog. " \
  16.                 "The quick brow fox jumps over the lazy dog. " \
  17.                 "The quick brow fox jumps over the lazy dog. " \
  18.                 "The quick brow fox jumps over the lazy dog. " \
  19.                 "The quick brow fox jumps over the lazy dog. " \
  20.                 "The quick brow fox jumps over the lazy dog. " \
  21.                 "The quick brow fox jumps over the lazy dog. " \
  22.                 "The quick brow fox jumps over the lazy dog. " \
  23.                 "The quick brow fox jumps over the lazy dog. " \
  24.                 "The quick brow fox jumps over the lazy dog. " \
  25.                 "The quick brow fox jumps over the lazy dog. " \
  26.                 "The quick brow fox jumps over the lazy dog. " \
  27.                 "The quick brow fox jumps over the lazy dog. " \
  28.                 "The quick brow fox jumps over the lazy dog. " \
  29.                 "The quick brow fox jumps over the lazy dog. " \
  30.                 "The quick brow fox jumps over the lazy dog. " \
  31.                 "The quick brow fox jumps over the lazy dog. " \
  32.                 "The quick brow fox jumps over the lazy dog. " \
  33.                 "The quick brow fox jumps over the lazy dog. " \
  34.                 "The quick brow fox jumps over the lazy dog. "
  35.  
  36. void main (void)
  37.  
  38. {
  39.     NetMail    msg (NMPATH);
  40.  
  41. //    msg << "\001INTL 27:5331/204 27:1331/703\r";
  42.     msg << "\001MSGID: 27:1331/703 12a5f3db\r";
  43.     msg    << "\rThis is a netmail message.\r\r";
  44.     msg << MSGTXT1;
  45.     msg    << "\r\rAs you can see, writing one is quite easy.\r\r";
  46.     msg    << "Bye!\r";
  47.  
  48. //    msg.From ("Feico de Boer", 2, 282, 357, 13);
  49.     msg.From ("Frank van.Wensveen", 1331, 703);
  50. //    msg.To ("Sysop", 27, 5331, 204, 0);
  51.     msg.To ("Feico de Boer", 5331, 204);
  52.     msg.Subject ("Demo test");
  53. //    msg.SetAttribute (NM_LOCAL | NM_KILL);
  54.     msg.SetAttribute (NetHdr::Private | NetHdr::Kill);
  55.  
  56.     msg.Write ();    // write new message
  57. }
  58.